#ifndef _CHARSET_CONVERT_H_  
#define _CHARSET_CONVERT_H_  

//starios alter  
#include <stdlib.h>  
#include "stddef.h"  
#include <string>  
using namespace std;
class CharsetConvert
{
public:
	static std::string GBKToUTF8(const char* msg);
	static  std::string UTF8ToGBK(const char* msg);
	static int code_convert(const char *from_charset, const char *to_charset, const char *inbuf, size_t inlen, char *outbuf, size_t outlen);
	static int IsTextUTF8(const char* str, int length);
	static bool unicode_to_utf8(char *inbuf, size_t *inlen, char *outbuf, size_t *outlen);
	static std::string u2a(const char *inbuf);
	static std::string a2u(const char *inbuf);
};
#endif  